package cn.manyufun.myf.ui.comics.contract;


import cn.manyufun.myf.bean.ComicsListBean;
import cn.manyufun.myf.common.base.BaseModel;
import cn.manyufun.myf.common.base.BasePresenter;
import cn.manyufun.myf.common.base.BaseView;
import rx.Observable;

/**
 * des:新闻列表contract
 * <p>
 * on 2016.09.14:38
 */
public interface ComicsListContract {
    interface Model extends BaseModel {
        Observable<ComicsListBean> getComicsListData();
    }

    interface View extends BaseView {
        //返回获取的新闻
        void returnComicsListData(ComicsListBean newsSummaries);
    }

    abstract static class Presenter extends BasePresenter<View, Model> {
        //发起获取新闻请求
        public abstract void getComicsListDataRequest();
    }
}
